/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.smart.common.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhanghong
 * @version TreeVO.java, v 0.1 2022/11/9 17:36 下午 TreeVO Exp $$
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BaseTreeVO<T> extends BaseVO implements Serializable {
    @ApiModelProperty("父级id")
    private Long pid;
    @ApiModelProperty("父级id")
    private Long parentId;
    @ApiModelProperty("父级路径")
    private List<Long> path;
    @ApiModelProperty("同层级下的排序权重值，数值越小排序越靠前")
    private Integer weight;
    @ApiModelProperty("子节点")
    private List<T> children;
}
